<!DOCTYPE html>
<html lang="en">

<head>
  <base href="/icr5/">
  <title>iChineseReader</title>
  <meta charset="UTF-8">
  <meta content="IE=Edge" http-equiv="X-UA-Compatible">
  <meta id="MetaDescription" name="DESCRIPTION"
    content="iChinesereader, Best Leveled Chinese Reading and Teaching Platform; 爱读，最好的中文分级阅读平台" />
  <meta name="KEYWORDS"
    content="leveled reading, leveled Chinese reading, level Chinese, Chinese reading, Chinese Immersion, IB Chinese, Chinese as second language, AP Chinese, Chinese language, Chinese heritage, online reading, ACTFL, Common Core, science reading, social studies reading, placement test,running records, chinese quiz,chinese textbook,K-12 Chinese,分级阅读, 中文分级阅读, 中文阅读, 汉语阅读, 中文测试, 中文考试, AP中文, 沉浸式中文, 在线阅读, 移动阅读, 沉浸式汉语, IB中文, 第二外语中文, 学科阅读, 科学读本, 社会学读本,汉语教材,中文教材" />
  <!-- iOS meta tags & icons -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="iChineseReader">
  <link rel="apple-touch-icon" href="icons/Icon-192.png">
  <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  <link rel="icon" href="favicon.ico" type="image/x-icon">
  <link rel="manifest" href="manifest.json">
  <script src="https://unpkg.com/browse/canvaskit-wasm@0.35.0/bin/canvaskit.js"
    integrity="sha384-jqCc6wp4m9TTS88Ras3g55O443r3P8KHgC93JHOMkW3J3KtLScJ+Mk4/eVBv6SAC"
    crossorigin="anonymous"></script>
  <link rel="preload" href="https://unpkg.com/canvaskit-wasm@0.35.0/bin/canvaskit.wasm" as="fetch"
    crossOrigin="anonymous">
  <script type="application/javascript" src="assets/packages/flutter_inappwebview/assets/web/web_support.js"
    defer></script>
</head>
</head>

<body>
  <script>
    var serviceWorkerVersion = null;
    var scriptLoaded = false;
    function loadMainDartJs() {
      if (scriptLoaded) {
        return;
      }
      scriptLoaded = true;
      var scriptTag = document.createElement('script');
      scriptTag.src = 'main.dart.js';
      scriptTag.type = 'application/javascript';
      document.body.append(scriptTag);
    }

    if ('serviceWorker' in navigator) {
      window.addEventListener('load', function () {
        var serviceWorkerUrl = 'flutter_service_worker.js?v=' + serviceWorkerVersion;
        navigator.serviceWorker.register(serviceWorkerUrl)
          .then((reg) => {
            function waitForActivation(serviceWorker) {
              serviceWorker.addEventListener('statechange', () => {
                if (serviceWorker.state == 'activated') {
                  console.log('Installed new service worker.');
                  loadMainDartJs();
                }
              });
            }
            if (!reg.active && (reg.installing || reg.waiting)) {
              if (reg.installing == null) waitForActivation(reg.waiting)
              else waitForActivation(reg.installing);
            } else if (!reg.active.scriptURL.endsWith(serviceWorkerVersion)) {
              console.log('New service worker available.');
              reg.update();
              waitForActivation(reg.installing);
            } else {
              console.log('Loading app from service worker.');
              loadMainDartJs();
            }
          });

        setTimeout(() => {
          if (!scriptLoaded) {
            console.warn(
              'Failed to load app from service worker. Falling back to plain <script> tag.',
            );
            loadMainDartJs();
          }
        }, 4000);
      });
    } else {
      loadMainDartJs();
    }
  </script>
  <script src="https://resources.ichinesereader.com/common/js/jsQR.min.js"></script>
  <script src="https://resources.ichinesereader.com/common/js/pdf.min.js"></script>
  <script type="text/javascript">
    pdfjsLib.GlobalWorkerOptions.workerSrc = "https://resources.ichinesereader.com/common/js/pdf.worker.min.js";
  </script>
</body>

</html>